import request from '@/utils/request'



export function createConfirmApprove(data) {
  return request({
    url: '/api/approval/flow/confirm/',
    method: 'post',
    data: data
  })
}


export function updateConfirmApprove(id,data) {
  return request({
    url: `/api/approval/flow/confirm/${id}/`,
    method: 'patch',
    data: data
  })
}


export function getConfirmApprove(id) {
  return request({
    url: `/api/approval/flow/confirm/${id}/`,
    method: 'get'
  })
}

// export function updateRolePermissions(id, permissions) {
//   return request({
//     url: `/api/system/roles/${id}/`,
//     method: 'patch',
//     data: { 'permissions': permissions }
//   })
